package com.toonyoo.eurekafeign.apis;

import com.toonyoo.eurekafeign.apis.hystrix.HelloInterfaceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "producer", fallback = HelloInterfaceHystrix.class)
public interface HelloInterface {

    @RequestMapping(value = "/sayHello",method = RequestMethod.GET)
    String sayHiFromClientOne(@RequestParam(value = "name") String name);
}
